package com.example.everying.service.content;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.everying.model.dto.content.ActivityRatingDto;
import com.example.everying.model.entity.ActivityRating;
import com.example.everying.model.vo.content.ActivityArticleVo;
import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.everying.utils.Result;

/**
 * 活动评价服务接口
 */
public interface ActivityRatingService extends IService<ActivityRating> {
    /**
     * 新增评价
     */
    boolean saveRating(ActivityRating rating);

    /**
     * 更新评价
     */
    boolean updateRating(ActivityRating rating);

    /**
     * 删除评价（逻辑删除）
     */
    boolean deleteRating(String id);

    /**
     * 获取所有评价列表
     */
    List<ActivityRating> getAllRatings();

    /**
     * 根据ID获取评价详情
     */
    ActivityRating getRatingById(String id);

    /**
     * 查询我发布的待评价活动
     */
    IPage<ActivityArticleVo> getPublishedToRate(Page<ActivityArticleVo> pageParam, String currentUserId);

    /**
     * 查询我参与的待评价活动
     */
    IPage<ActivityArticleVo> getParticipatedToRate(Page<ActivityArticleVo> pageParam, String currentUserId);

    Result<?> deleteViewRating(ActivityRating rating);


    Result<?> readRating(ActivityRatingDto rating);
}
